<?php
namespace Gotcha\Core\Components\DTO {
    class AppConfig {
        public $host;
        public $virtualHost;
        public $port;

        public $tokensLimit;
        public $tokensLifespan;

        public $requestValidationToken;
        public $validateInput;

        public $defaultAuthenticationMode;
        public $defaultAlgorithm;

        public $defaultTimezone;
        public $defaultCulture;

        public function __set($field, $value) {
            throw new \ErrorException('Cannot set value for DTO field that does not exist.');
        }
    }
}

